<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>标的详情 - ${title}</title>
        
        <!--<link type="text/css" rel="stylesheet" href="${base}/res/front/css/sytle/financing-css/financeDetail.css" />-->
        <link type="text/css" rel="stylesheet" href="../../../res/front/css/sytle/index.css" />
        <link type="text/css" rel="stylesheet" href="${base}/res/front/css/sytle/financing-css/balanceDetail.css" />
        <script type="text/javascript" src="../../../res/front/js/js/jquery-1.6.4.js"></script>
        <!-----------------------------  滚动条js  ------------------------------------------------------------->
        <script type="text/javascript" src="../../../res/front/js/js/jquery.tinyscrollbar.min.js"></script>
        <script type="text/javascript" src="../../../res/front/js/js/cufon.js"></script>
        <script type="text/javascript" src="../../../res/front/js/js/website.js"></script>
        <link rel="shortcut icon" type="image/x-icon" href="${base}/res/front/img/imagesForFront/favicon.ico" />
        <script type="text/javascript">
			/*$(function() {
				$("#jvForm").validate();
			});*/
			$(function(){
					//$("#tabs").tabs();
				var $uli = $(".tab ul li");
				var $oli = $(".tab ol li");
				$uli.addClass("normal");
				$oli.addClass("none");
				$uli[0].className = "hover";
				$oli[0].className = "show";
				$uli.each(function(n){
					$(this).click(function(){
						$uli.removeClass().addClass("normal");
						$(this).removeClass().addClass("hover");
						$oli.removeClass().addClass("none");
						$($oli[n]).removeClass().addClass("show");
					});   
				});
				
				$("textarea").focus(function(){
					$(this).css({width:'800',height:'150',border:"1px solid #0CF","box-shadow":"0 0 5px #0CF"})
				});
				
				$("textarea").blur(function(){
					$(this).css({width:'800',height:'150',border:"1px solid #CCC","box-shadow":"none"});
				});
				
				//首先将#back-to-top隐藏
        		$("#totop").hide();
				//当滚动条的位置处于距顶部100像素以下时，跳转链接出现，否则消失
				$(window).scroll(function(){
					if ($(window).scrollTop()>100){
						$("#totop").fadeIn();
					}
					else
					{
						$("#totop").fadeOut();
					}
				});
				//当点击跳转链接后，回到页面顶部位置
				$("#totop").click(function(){
					$('body,html').animate({scrollTop:0},500);
					return false;
				});
					
			});
			
			function ajaxSubmitMSG(){
				$.post(
						'${base}/member/o_tfileaveamessageSave.jspx',
						$('#msgForm').serialize(),
						function(msg){
							if(msg){
								$("#sf").submit();
							}else{
								alert("留言失败.");
							}
						}
					)
			}
		</script>


	</head>
<!---------- 标的详情\ROOT\WEB-INF\front\businessPage\financeDetail.html ---------->
	<body>
    	<!-- 头部 header.html -->
		<#include "/front/common/header.html"/>
        <!-- 中部 -->
        <div class="detail_centre">
        	<div class="detail_centre_main">
            	<div class="detail_location_div">
                	<span>
                    	<b><a href="/index.jspx">我要投资</a></b>&nbsp;>
                        <b><a href="/member/v_tfinanceinfoList1.jspx">投资标的列表</a></b>&nbsp;>
                        <b>标的详情</b>
                    </span>
                </div>
                <div class="detail_div_tab">
                	<!-- 左边标的投资内容div -->
                	<div class="det_left_div">
                    	<div class="bal_left_detail">
                        	<ul>
                                <li class="balli_detail_tab">
                                	<ul>
                                    	<li class="zi_1">融资关键字：</li>
                                        <li class="zi_2" title="${tfinanceinfo.financekey!}">${tfinanceinfo.financekey!}</li>
                                    </ul>
                                    <ul>
                                    	<li class="zi_3">融资用途：</li>
                                        <li class="zi_4" title="${tfinanceinfo.financeuse!}">${tfinanceinfo.financeuse!}</li>
                                    </ul>
                                </li>
                                <li class="balli_detail_tab">
                                	<ul>
                                    	<li class="zi_1">融资金额：</li>
                                        <li class="zi_2" title="${tfinanceinfo.financeamount!}">
                                        	${(tfinanceinfo.financeamount!0)?string.currency}
                                        </li>
                                    </ul>
                                    <ul>
                                    	<li class="zi_3">资金使用期限：</li>
                                        <li class="zi_4">
                                        	<#if (tfinanceinfo.financeallotedtime<30)>
                                            	${tfinanceinfo.financeallotedtime}日
                                            <#else>
                                            	${tfinanceinfo.financeallotedtime/30}个月
                                            </#if>
                                        </li>
                                    </ul>
                                </li>
                                <li class="balli_detail_tab">
                                	<ul>
                                    	<li class="zi_1">年利率：</li>
                                        <li class="zi_2">#{(tfinanceinfo.financepa!*100); m2M2}%
                                        </li>
                                        <li class="zi_3">还款周期：</li>
                                        <li class="zi_4">
                                        	<#list repaymentperiodMap?keys as idKey>
                                            	<#if idKey==tfinanceinfo.repaymentperiod!?string> 
                                                	${repaymentperiodMap[idKey]}
                                                </#if>
                                            </#list>
                                        </li>
                                    </ul>
                                </li>
                                <li class="balli_detail_tab">
                                	<ul>
                                    	<li class="zi_1">还款方式：</li>
                                        <li class="zi_2">
                                        	<#list repaymentmodMap?keys as idKey>
                                            	<#if idKey==tfinanceinfo.repaymentmod!?string>
                                            		
                                                    ${repaymentmodMap[idKey]}
                                            	</#if>
                                            </#list>
                                        </li>
                                        <li class="zi_3">融资期限：</li>
                                        <li class="zi_4">
                                        	${tfinanceinfo.financelimit!?string("yyyy-MM-dd")}
                                        </li>
                                    </ul>
                                </li>
                                <li class="balli_detail_tab">
                                	<ul>
                                    	<li class="zi_1">标的类型：</li>
                                        <li class="zi_2">
                                        	<#list targettypeMap?keys as idKey>
                                                <#if idKey==tfinanceinfo.targettype!?string>
                                                	${targettypeMap[idKey]}
                                                </#if>
                                            </#list>
                                        </li>
                                        <li class="zi_3">保障方式：</li>
                                        <li class="zi_4">
                                        	<#list supportmethodsMap?keys as idKey>
                                            	<#if idKey==tfinanceinfo.targettype!?string> 
                                            		${supportmethodsMap[idKey]}
                                            	</#if>
                                            </#list>
                                        </li>
                                    </ul>
                                </li>
                                <li class="balli_detail_tab" style="border-bottom:none;">
                                	<ul>
                                    	<li class="zi_1">融资情况描述：</li>
                                    	<li class="zi_7">${tfinanceinfo.financedescription!}</li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <!-- 右边可投金额div -->
                    <div class="bal_right_div">
                    	<div class="bal_right_bid">
							<script type="text/javascript">
							function check(){
								if($("#money").val()==""){
									alert('请输入投标金额');
									$("#money").select();
									return false;
								}
								if(isNaN($("#money").val())){
									alert('请输入合法的投标金额');
									$("#money").select();
									return false;
								}if($("#money").val()%50!=0){
								alert("请输入50的倍数");
								$("#money").select();
								return false;
							} if($("#money").val()>${accont.balance}){
								alert("余额不足, 请充值.");
								$("#money").select();
								return false;
							}else{
									$("#msg").html('');
									return true;
								}
							}
                            </script>
                        	<div class="bal_agreement">
                            	<a href="rechargeInit.jspx" style="color:#ff9a00; position:relative; right:130px;" target="block;">充值</a>
                            	<a href="/融资协议.html" style="color:#FF9A00;" target="block">融资协议（范本）</a>
                            </div>
                        	<form action="${base}/member/o_ttenderrecordTender.jspx" method="post" onsubmit="return check();">
                            	<input name="Tfinanceinfo.fiid" value="${tfinanceinfo.fiid!}" type="hidden"/>
								<input name="financepa" value="${tfinanceinfo.financepa!}" type="hidden"/>
                                <ul>
                                    <#if operation??>
                                    <li class="bal_bid_li">
                                        <ul>
                                            <li class="text_1">标的状态:</li>
                                            <li class="text_2" title="${(tfinanceinfo.financeamount-tfinanceinfo.totaltendermoney)?string.currency}元">	
                                                <#list fstatusMap?keys as idKey>
                                            	<#if idKey==tfinanceinfo.status!?string> 
                                            		${fstatusMap[idKey]}
                                            	</#if>
                                          		</#list>
                                            </li>
                                        </ul>
                                    </li>
                                    <#else>
                                    <li class="bal_bid_li">
                                        <ul>
                                            <li class="text_1">可投金额：</li>
                                            <li class="text_2" title="${(tfinanceinfo.financeamount-tfinanceinfo.totaltendermoney)?string.currency}元">	
                                                ${(tfinanceinfo.financeamount-tfinanceinfo.totaltendermoney)?string.currency}元
                                            </li>
                                        </ul>
                                    </li>
                                    <li class="bal_bid_li">
                                        <ul>
                                            <li class="text_1">账户余额：</li>
                                            <li class="text_2" title="${accont.balance?string.currency}元">
                                       	 		${accont.balance?string.currency}元
                                    		</li>
                                        </ul>
                                    </li>
                                    <li class="bal_bid_li">
                                    	<ul>
                                        	<li class="text_1">我要投资：</li>
                                            <li class="text_3">
                                        		<input id="money" type="text" name="tdmoney" size="6" class="inp_1"/>
                                    		</li>
                                    		<li class="text_4">元</li>
                                        </ul>
                                    </li>
                                    <li class="text_6">请输入50的倍数</li>
                                   <li class="text_7">
                                   		<input type="submit" value="" class="inp_4" />
                                   </li>
                                    </#if>
                                    <li style="clear:both;"></li>
                                </ul>                         
                            </form>
                        </div>
                    </div>
                </div>
                <div style="clear:both;"></div>
                <!-- 融资详情和加入记录tabs框 -->
                <div class="tab">
                <ul>
                    <li>融资详情</li>
                    <li>投标记录</li>
                </ul>
                <ol>
                	<!-- 融资详情tabs框 -->
                    <li style="width:1030px; padding-top:15px; padding-bottom:15px;">
                        	<div class="baldet_tab_left_div">
                            	<div class="bal_detail_title">账户档案</div>
                                <div class="bal_li_div_detail_1">
                                    <div class="zi_8">账户：</div>
                                    <div class="zi_9" title="${tfinanceinfo.tmember.loginname!?html}">${tfinanceinfo.tmember.loginname!?html}</div>
                                    <div class="zi_10">工作所在地：</div>
                                    <div class="zi_11" title="${tfinanceinfo.tmember.workaddr!?html}">${tfinanceinfo.tmember.workaddr!?html}</div>
                                    <div style="clear:both;"></div>
                                </div>
                                <div class="bal_li_div_detail_1">
                                    <div class="zi_8">出生年月：</div>
                                    <div class="zi_9">${tfinanceinfo.tmember.birthday!?string("yyyy-MM")}</div>
                                    <div class="zi_10">公司规模：</div>
                                    <div class="zi_11">
                                        <#list corpsizeMap?keys as idKey>
                                            <#if idKey==tfinanceinfo.tmember.corpsize!?string> 
                                                ${corpsizeMap[idKey]}
                                            </#if>
                                        </#list>
                                    </div>
                                    <div style="clear:both;"></div>
                            	</div>
                                <div class="bal_li_div_detail_1">
                                    <div class="zi_8">学历：</div>
                                    <div class="zi_9">
                                        <#list edudegreeMap?keys as idKey>
                                            <#if idKey==tfinanceinfo.tmember.edudegree!?string> 
                                                ${edudegreeMap[idKey]}
                                            </#if>
                                        </#list>
                                    </div>
                                    <div class="zi_10">工作时间：</div>
                                    <div class="zi_11">${tfinanceinfo.tmember.workexperience!?html}年</div>
                                    <div style="clear:both;"></div>
                                </div>
                                <div class="bal_li_div_detail_1">
                                    <div class="zi_8">婚姻：</div>
                                    <div class="zi_9">
                                        <#list marriageMap?keys as idKey>
                                            <#if idKey==tfinanceinfo.tmember.marriage!?string> 
                                                ${marriageMap[idKey]}
                                            </#if>
                                        </#list>
                                    </div>
                                    <div class="zi_10">工作职位：</div>
                                    <div class="zi_11" title="${tfinanceinfo.tmember.position!?html}">${tfinanceinfo.tmember.position!?html}</div>
                                    <div style="clear:both;"></div>
                                </div>
                                <div class="bal_li_div_detail_1">
                                    <div class="zi_8">央行征信：</div>
                                    <div class="zi_9">
                                        <#list cbcreditMap?keys as idKey>
                                            <#if idKey==tfinanceinfo.tmember.cbcredit!?string> 
                                                ${cbcreditMap[idKey]}
                                            </#if>
                                        </#list>
                                    </div>
                                    <div class="zi_10">平均月收入：</div>
                                    <div class="zi_11">${tfinanceinfo.tmember.income!?html}</div>
                                    <div style="clear:both;"></div>
                                </div>
                                <div class="bal_li_div_detail_1">
                                    <div class="zi_8">固定资产：</div>
                                    <div class="zi_9">
                                        <#list fixedassetsMap?keys as idKey>
                                            <#if idKey==tfinanceinfo.tmember.fixedassets!?string> 
                                                ${fixedassetsMap[idKey]}
                                            </#if>
                                        </#list>
                                    </div>
                                    <div class="zi_10">流动资产：</div>
                                    <div class="zi_11">
                                        <#list currentassetsMap?keys as idKey>
                                            <#if idKey==tfinanceinfo.tmember.currentassets!?string> 
                                                ${currentassetsMap[idKey]}
                                            </#if>
                                        </#list>
                                    </div>
                                    <div style="clear:both;"></div>
                                </div>
                                <div class="bal_li_div_detail_1">
                                    <div class="zi_8">从事行业：</div>
                                    <div class="zi_9">
                                        <#list worktypeMap?keys as idKey>
                                            <#if idKey==tfinanceinfo.tmember.worktype!?string> 
                                                ${worktypeMap[idKey]}
                                            </#if>
                                        </#list>
                                    </div>
                                    <div class="zi_10">公司名称：</div>
                                    <div class="zi_11" title="${tfinanceinfo.tmember.corpindustry!?html}">${tfinanceinfo.tmember.corpindustry!?html}</div>
                                    <div style="clear:both;"></div>
                                </div>
                                <div class="bal_li_div_detail_1">
                                    <div class="zi_8">技术职称：</div>
                                    <div class="zi_9">${tfinanceinfo.tmember.titles!?html}</div>
                                    <div style="clear:both;"></div>
                                </div>
                            </div>
                            <div class="baldet_tab_right_div">
                            	<div class="bal_credit">信用信息</div>
								<div class="bal_credit_right_div">
                                    <div class="bal_credit_right_div">
                                        <div class="zi_12">信用等级</div>
                                        <div class="zi_13">
                                            <img src="${base}/res/front/img/imagesForFront/${tfinanceinfo.tmember.tmembercredits[0].creditrating}.png" border="0" width="30" height="30" alt="${tfinanceinfo.tmember.tmembercredits[0].creditrating}" title="${tfinanceinfo.tmember.tmembercredits[0].creditrating}" />
                                        </div>
                                        <div style="clear:both;"></div>
                                    </div>
                                    <div class="bal_credit_right_div_2">
                                        <div class="zi_14">信用总分</div>
                                        <div class="zi_15" title="${tfinanceinfo.tmember.tmembercredits[0].creditscore}分">
                                        	${tfinanceinfo.tmember.tmembercredits[0].creditscore}分
                                        </div>
                                	</div>
                                	<div class="bal_credit_right_div_2">
                                        <div class="zi_14">总融资次数</div>
                                        <div class="zi_15" title="${financeinfo.borrowNum}次">${financeinfo.borrowNum}次</div>
                                	</div>
                                    <div class="bal_credit_right_div_2">
                                        <div class="zi_14">还清次数</div>
                                        <div class="zi_15" title="${financeinfo.borrowClear}笔">${financeinfo.borrowClear}笔</div>
                                	</div>
                                	<div class="bal_credit_right_div_2">
                                        <div class="zi_14">融资成功</div>
                                        <div class="zi_15" title="${financeinfo.borrowSuccess}次">${financeinfo.borrowSuccess}次</div>
                                	</div>
                                	<div class="bal_credit_right_div_2">
                                        <div class="zi_14">融资失败</div>
                                        <div class="zi_15" title="${financeinfo.borrowFail}次">${financeinfo.borrowFail}次</div>
                                	</div>
                                    <div class="bal_credit_right_div_2">
                                        <div class="zi_14">还款中标的</div>
                                        <div class="zi_15" title="${financeinfo.payying}个">${financeinfo.payying}个</div>
                                    </div>
                                    <div class="bal_credit_right_div_2">
                                        <div class="zi_14">下期待还</div>
                                        <div class="zi_15" title="￥${financeinfo.nextPay}元">￥${financeinfo.nextPay}元</div>
                                    </div>
                                    <div class="bal_credit_right_div_2">
                                        <div class="zi_14">融资总金额</div>
                                        <div class="zi_15" title="￥${financeinfo.borrowMoney}元">￥${financeinfo.borrowMoney}元</div>
                                    </div>
                                    <div class="bal_credit_right_div_2">
                                        <div class="zi_14">逾期</div>
                                        <div class="zi_15" title="${financeinfo.borrowDelay}次">${financeinfo.borrowDelay}次</div>
                                    </div>
                                </div>
                            </div>
                            <div style="clear:both;"></div>
                    </li>
                    <!-- 加入记录tabs框 -->
                    <li style="width:1030px; padding-top:15px; padding-bottom:15px;">
                    	<div class="baldet_record_tabs_left">
                            <div class="baldet_title_header">
                                <span style="width:190px; text-align:center;">转入人</span>
                                <span style="width:180px; text-align:center;">转入金额</span>
                                <span style="width:190px; text-align:center;">转入时间</span>
                            </div>
                            <div style="width:630px; height:220px; overflow:auto;">
                                <#list tfinanceinfo.ttenderrecords as t >
                                    <div class="baldet_detail_list">
                                        <div class="zi_16" title="${t.tmember.loginname}">${t.tmember.loginname}</div>
                                        <div class="zi_17" title="${t.tdmoney!?string.currency}元">${t.tdmoney!?string.currency}元</div>
                                        <div class="zi_18">${t.tddatetime!?string("yyyy-MM-dd")}</div>
                                        <div style="clear:both;"></div>
                                    </div>
                                </#list>
                            </div>
                        </div>
                        <div class="baldet_record_tabs_right">
                        	<p class="zi_19">转入总额</p>
                        	<p class="zi_20">${tfinanceinfo.totaltendermoney?string.currency}元</p>
                        	<p class="zi_19">加入人次</p>
                        	<p class="zi_21">${tfinanceinfo.ttenderrecords?size}人</p>
                        </div>
                        <div style="clear:both;"></div>
                    </li>
                </ol>
            </div>
            <div class="baldet_message_div">
                <h1 class="baldet_h1">留言</h1>
                <div class="baldet_form_div">
                    <form action="" method="post" id="msgForm">
                    <textarea name="lmconten" cols="153" class="textarea_type"></textarea>
                  <div class="baldet_mes_submit"><input type="button" value="提交留言" class="baldet_inp_sub" onclick="ajaxSubmitMSG();"/></div>
                        <input type="hidden" name="tfinanceinfo.fiid" value="${tfinanceinfo.fiid}"/>
                    </form>
                </div>
                <div id="scrollbar1">
                    <div class="scrollbar">
                        <div class="track">
                            <div class="thumb">
                                <div class="end"></div>
                            </div>
                        </div>
                    </div>
                    <div class="viewport">
                        <div class="overview">
                            <#list msgList! as m>
                                <div class="detail_message_tab">
                                    <div class="detail_pohot">
                                        <img src="../../../res/front/img/imagesForFront/portrait.jpg" width="60" height="60" border="0" style="border:1px solid #CCC;" />
                                    </div>
                                    <div class="detail_meage">
                                        <ul>
                                            <li class="detail_user_message_div">
                                                <ul>
                                                    <li class="zi_22">账户：</li>
                                                    <li class="zi_23" title="${m.tmember.loginname!?html}">${m.tmember.loginname!?html}</li>
                                                    <li class="zi_24">日期：</li>
                                                    <li class="zi_25">${m.lmdate!?string("yyyy-MM-dd HH:mm")}</li>
                                                    <li style="clear:both;"></li>
                                                </ul>
                                            </li>
                                            <li class="detail_user_message_div">
                                                <ul>
                                                    <li class="zi_26">留言：</li>
                                                    <li class="zi_27">${m.lmconten!?html}</li>
                                                    <li style="clear:both;"></li>
                                                </ul>
                                            </li>
                                        </ul>
                                    </div>
                                    <div style="clear:both;"></div>
                            	</div>	    
                            </#list> 
                        </div>
                    </div>
    			</div>
            </div>
            </div>
            
            
            
            
        </div>
        <!-- 底部 footer.html -->
        <form action="/member/v_tfinanceinfoDetail.jspx" method="post" id="sf">
                            <input type="hidden" name="fiid" value="${tfinanceinfo.fiid}"/>
                        </form> 
     	<#include "/front/common/footer.html"/>
	</body>
</html>
